package com.csj.cloud.order.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.csj.cloud.common.dao.OrderMapper;
import com.csj.cloud.common.entity.Order;
import com.csj.cloud.common.vo.ResultBean;
import com.csj.cloud.core.service.order.OrderService;

/**
 * @Author:ChengshaoJie
 * @Description:
 * @Date:Created in 下午 2:08 2019/12/2 0002
 */
@Service(group = "other",async = true)
public class OrderServiceOtherImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    @Override
    public ResultBean addOrder(Order order) {
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        ResultBean r = new ResultBean();
        r.setMsg("另一种订单方法实现");
        return r;
    }
}
